<?php
/* SVN FILE: $Id: media.php 162 2009-10-14 19:48:36Z miha@nahtigal.com $ */
/**
 * Short description for media.php
 *
 * Long description for media.php
 *
 * PHP versions 4 and 5
 *
 * Copyright (c) 2009, Miha Nahtigal
 *
 * Licensed under The MIT License
 * Redistributions of files must retain the above copyright notice.
 *
 * @filesource
 * @copyright     Copyright (c) 2009, Miha Nahtigal
 * @link          http://www.nahtigal.com/
 * @package       lil_media
 * @subpackage    lil_media.models
 * @since         v 1.0
 * @version       $Revision: 162 $
 * @modifiedby    $LastChangedBy: miha@nahtigal.com $
 * @lastmodified  $Date: 2009-10-14 21:48:36 +0200 (sre, 14 okt 2009) $
 * @license       http://www.opensource.org/licenses/mit-license.php The MIT License
 */
/**
 * Media class
 *
 * @uses          AppModel
 * @package       lil_media
 * @subpackage    lil_media.models
 */
class Media extends AppModel {
/**
 * name property
 *
 * @var string 'Media'
 * @access public
 */
	var $name = 'Media';
/**
 * useTable property
 *
 * @var bool
 * @access public
 */
	var $useTable = false;
/**
 * actsAs property
 *
 * @var array
 * @access public
 */
 	var $actsAs = array(
		'LilUpload.LilUpload' => array(
			'allowedMime' => '*',
			'allowedExt' => array('gif', 'jpg', 'png', 'doc', 'docx', 'xls', 'xlsx', 'pdf', 'rtf'),
			
			'baseDir'     => '{WWW_ROOT}uploads{DS}',
			'dirFormat' => '',
			'fileFormat' => '{$full_name}',
			
			'overwriteExisting' => true,
			'mustUploadFile' => true,
		)
	);
}
?>